package com.banksystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.banksystem.entity.Group;
import com.banksystem.mapper.Groupmapper;
import com.banksystem.service.Groupservice;

@Service
public class Groupserviceimpl implements Groupservice {

	@Autowired
	private Groupmapper mapper;
	
	@Override
	public Group findstxxAll(String uname) {
		return mapper.findstxxAll(uname);
	}

	@Override
	public List<Group> findstxx() {
		return mapper.findstxxadmin();
	}

	@Override
	public void detelest(String gid) {
		// TODO Auto-generated method stub
		mapper.detelest(gid);
	}

	@Override
	public List<Group> findgroup(String seach) {
		// TODO Auto-generated method stub
		return mapper.findgroup(seach);
	}

	@Override
	public void addst(String name, String type, String date, String master, String phone, String uname, String password,
			String intro) {
		// TODO Auto-generated method stub
		mapper.addst(name, type, date, master, phone, uname, password, intro);
		mapper.addstuser(uname, password, "负责人");
	}

}
